/**
 * jims
 */
package com.jims.master.modules.template.entity;

import com.jims.master.common.persistence.DataEntity;
import com.jims.master.modules.sys.entity.OrgDept;
import org.hibernate.validator.constraints.Length;

/**
 * Entity
 * @author 系统管理员
 * @version 2017-06-02
 */
public class DoctorTempla extends DataEntity<DoctorTempla> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 模板主题
	private String deptCode;		// 科室
	private String itemClass;		// 项目类别
	private String advice;		// 诊断描述
	private String diagnosis;		// 建议
	private String creatr;		// 创建者
	private String subTitle;		// 子标题
	private String flag;		// 范围
	private String projectType;		// 模板类型
	private String memo;		// 备忘录
	private String orgId;		// 机构id
	private String implementDept;		// 发药药房
	private String billingDept;		// 开单科室
	private String repeatIndiractor;		// 长期0临时1

	private String name;
	private OrgDept orgDept;		// 执行科室
	
	public DoctorTempla() {
		super();
	}

	public DoctorTempla(String id){
		super(id);
	}

	public OrgDept getOrgDept() {
		return orgDept;
	}

	public void setOrgDept(OrgDept orgDept) {
		this.orgDept = orgDept;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Length(min=0, max=64, message="模板主题长度必须介于 0 和 64 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=64, message="科室长度必须介于 0 和 64 之间")
	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}
	
	@Length(min=0, max=1, message="项目类别长度必须介于 0 和 1 之间")
	public String getItemClass() {
		return itemClass;
	}

	public void setItemClass(String itemClass) {
		this.itemClass = itemClass;
	}
	
	@Length(min=0, max=200, message="诊断描述长度必须介于 0 和 200 之间")
	public String getAdvice() {
		return advice;
	}

	public void setAdvice(String advice) {
		this.advice = advice;
	}
	
	@Length(min=0, max=200, message="建议长度必须介于 0 和 200 之间")
	public String getDiagnosis() {
		return diagnosis;
	}

	public void setDiagnosis(String diagnosis) {
		this.diagnosis = diagnosis;
	}
	
	@Length(min=0, max=64, message="创建者长度必须介于 0 和 64 之间")
	public String getCreatr() {
		return creatr;
	}

	public void setCreatr(String creatr) {
		this.creatr = creatr;
	}
	
	@Length(min=0, max=64, message="子标题长度必须介于 0 和 64 之间")
	public String getSubTitle() {
		return subTitle;
	}

	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}
	
	@Length(min=0, max=1, message="范围长度必须介于 0 和 1 之间")
	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}
	
	@Length(min=0, max=1, message="模板类型长度必须介于 0 和 1 之间")
	public String getProjectType() {
		return projectType;
	}

	public void setProjectType(String projectType) {
		this.projectType = projectType;
	}
	
	@Length(min=0, max=100, message="备忘录长度必须介于 0 和 100 之间")
	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
	
	@Length(min=0, max=64, message="机构id长度必须介于 0 和 64 之间")
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	
	@Length(min=0, max=64, message="发药药房长度必须介于 0 和 64 之间")
	public String getImplementDept() {
		return implementDept;
	}

	public void setImplementDept(String implementDept) {
		this.implementDept = implementDept;
	}
	
	@Length(min=0, max=64, message="开单科室长度必须介于 0 和 64 之间")
	public String getBillingDept() {
		return billingDept;
	}

	public void setBillingDept(String billingDept) {
		this.billingDept = billingDept;
	}
	
	@Length(min=0, max=1, message="长期0临时1长度必须介于 0 和 1 之间")
	public String getRepeatIndiractor() {
		return repeatIndiractor;
	}

	public void setRepeatIndiractor(String repeatIndiractor) {
		this.repeatIndiractor = repeatIndiractor;
	}
	
}